package com.oracle.violet.first.config

import java.util.Properties

import com.typesafe.config.{Config, ConfigFactory}

object ConfigHandler {

  private val config: Config = ConfigFactory.load()

  val parquetFilePath=config.getString("parquet.file.path")
  val newParquetFilePath = config.getString("newParquet.file.path")
  val appDictFilePath=config.getString("appDict.file.path")

  val driverClass: String = config.getString("jdbc.driverClass")
  val url: String = config.getString("jdbc.url")
  val user: String = config.getString("jdbc.user")
  val password: String = config.getString("jdbc.password")

  val props = new Properties()
  props.setProperty("driver",driverClass)
  props.setProperty("user",user)
  props.setProperty("password",password)

  // 解析redis host
  val redisHost: String = config.getString("redis.host")
  // 解析redis port
  val redisPort: Int = config.getInt("redis.port")


}
